#include <stdlib.h>
#include <stdio.h>

unsigned int *alloc_array(unsigned int num)
{
	unsigned int *p;
	p =  calloc(1, sizeof(unsigned int) * num);
	printf("malloc %p\n", p);
	return p;
}
void free_array(unsigned int *data)
{
	if (data){
		printf("free %p\n", data);
		free(data);
	}
}
void increase_A(unsigned int *data, unsigned int col_siz)
{
	unsigned int i, j, temp;
	unsigned int column;
	unsigned int *ptr = (unsigned int *)data;
	column = 8;
	for(i = 0; i < col_siz; i++)
	{
		for(j = 0; j < column; j++)
		{
			(*ptr)++;
			ptr++;
		}
	}
}
void increase_B(unsigned int *data[8], unsigned int col_siz)
{
	unsigned int i, j, temp;
	unsigned int column;
	unsigned int *ptr = (unsigned int *)data;
	column = 8;
	for(i = 0; i < col_siz; i++)
	{
		for(j = 0; j < column; j++)
		{
			(*ptr)++;
			ptr++;
		}
	}
}
